58f0ed52ae109ba5bc0c2a4e56c622e82b3d48b4,src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java,ApplicationServlet,service,#HttpServletRequest#HttpServletResponse#,312

Before Change


                    final HttpSession session = request.getSession();
                    if (session != null) {
                        WebApplicationContext.getApplicationContext(session)
                                .removeApplication(application);
                    }
                }
                // Not found, creating new application

After Change


                        ApplicationServlet.applicationToAjaxAppMgrMap
                                .remove(application);
                        WebApplicationContext.getApplicationContext(session)
                                .removeApplication(application);
                    }
                }
                // Not found, creating new application